/*
 * @(#)DynamicJob.java 2014-10-13 上午11:02:01
 * Copyright 2014 鲍建明, Inc. All rights reserved. 8637.com
 * PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package cn.singno.bob.quartz.dynamic.entity;

import org.quartz.Job;


/**
 * <p>File：DynamicJob.java</p>
 * <p>Title: </p>
 * <p>Description:</p>
 * <p>Copyright: Copyright (c) 2014 2014-10-13 上午11:02:01</p>
 * <p>Company: 8637.com</p>
 * @author 鲍建明
 * @version 1.0
 */
public class DynamicJob
{

	private String		jobId;						// 任务的Id，一般为所定义Bean的ID
	private String		jobName;					// 任务的描述
	private String		jobGroup;					// 任务所属组的名称
	private Integer			jobStatus;					// 任务的状态，0：启用；1：禁用；2：已删除
	private String		cronExpression;			// 定时任务运行时间表达式
	private String		memos;						// 任务描述
	private Class<? extends Job>	stateFulljobExecuteClass;	// 同步的执行类，需要从StatefulMethodInvokingJob继承
	private Class<? extends Job>	jobExecuteClass;			// 异步的执行类，需要从MethodInvokingJob继承
	
	
	   /** 
     * 得到该job的Trigger名字 
     * @return 
     */  
    public String getTriggerName() {  
        return this.getJobId() + "Trigger";  
    }  
    
	public String getJobId()
	{
		return jobId;
	}
	public void setJobId(String jobId)
	{
		this.jobId = jobId;
	}
	public String getJobName()
	{
		return jobName;
	}
	public void setJobName(String jobName)
	{
		this.jobName = jobName;
	}
	public String getJobGroup()
	{
		return jobGroup;
	}
	public void setJobGroup(String jobGroup)
	{
		this.jobGroup = jobGroup;
	}
	public Integer getJobStatus()
	{
		return jobStatus;
	}
	public void setJobStatus(Integer jobStatus)
	{
		this.jobStatus = jobStatus;
	}
	public String getCronExpression()
	{
		return cronExpression;
	}
	public void setCronExpression(String cronExpression)
	{
		this.cronExpression = cronExpression;
	}
	public String getMemos()
	{
		return memos;
	}
	public void setMemos(String memos)
	{
		this.memos = memos;
	}
	public Class<? extends Job> getStateFulljobExecuteClass()
	{
		return stateFulljobExecuteClass;
	}
	public void setStateFulljobExecuteClass(Class<? extends Job> stateFulljobExecuteClass)
	{
		this.stateFulljobExecuteClass = stateFulljobExecuteClass;
	}
	public Class<? extends Job> getJobExecuteClass()
	{
		return jobExecuteClass;
	}
	public void setJobExecuteClass(Class<? extends Job> jobExecuteClass)
	{
		this.jobExecuteClass = jobExecuteClass;
	}
	
}
